package com.nblog.utils;

import java.io.File;

public class FileUtil {
	public static String getFileName(String str){
		String fName = str.trim();
        String fileName = fName.substring(0,fName.lastIndexOf("."));
        return fileName;
	}
	public static boolean createFile(String path){
		try{
			File file=new File(path);
			
			if(!file.exists()){
				return file.mkdirs();
			}else{
				return true;
			}
		}catch(Exception e){
			e.printStackTrace();
			return false;
		}
		
	}
}
